import 'package:hive/hive.dart';
part 'model_owner.g.dart';
@HiveType(typeId: 3)
class Owner {
  Owner({
    this.mid,
    this.name,
    this.face,
  });

  @HiveField(0)
  int? mid;
  @HiveField(1)
  String? name;
  @HiveField(2)
  String? face;

  Owner.fromJson(Map<String, dynamic> json) {
    mid = json["mid"];
    name = json["name"];
    face = json['face'];
  }
}

class OwnerStat {
  int mid;
  int following;
  int whisper;
  int black;
  int follower;

  OwnerStat({
    this.mid = 0,
    this.following = 0,
    this.whisper = 0,
    this.black = 0,
    this.follower = 0,
  });

  factory OwnerStat.fromJson(Map<String, dynamic> json) => OwnerStat(
        mid: json["mid"],
        following: json["following"],
        whisper: json["whisper"],
        black: json["black"],
        follower: json["follower"],
      );
}
